#ifndef UTI_ORDERSERIES_MQ_H_
#define UTI_ORDERSERIES_MQ_H_
#pragma once
#include "sys_config.h"
#include "uti_orderseries.h"



class OrderSeries_Mq
{
public:

	OrderSeries_Mq(OrderSerInfo* pserinfo, HANDLE* phan);

	OrderSeries_Mq(unsigned int sersize, void (*pcallback_fun)(), HANDLE* phan);

	~OrderSeries_Mq();

	OrderData* GetReadP()
	{
		return (m_pstart + m_index);
	};

	int CheckReadindex();

public:
	OrderSeries* m_pser;


private:

	OrderData* m_pstart;

	unsigned int m_index;

	HANDLE* m_phan_callback;

	unsigned int m_size;

};





#endif